package com.yao.longhan.ui.activity;

import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;

import com.yao.longhan.R;
import com.yao.longhan.ui.base.BaseActivity;
import com.yao.longhan.presenter.adapter.HistoryAdapter;

import butterknife.BindView;

/**
 * Created by heyao on 2017/7/31.
 */

public class HistoryActivity extends BaseActivity {

    @BindView(R.id.history_recycler_view)
    RecyclerView mRecyclerView;

    private HistoryAdapter mHistoryAdapter;

    @Override
    protected int inflateLayout() {
        return R.layout.activity_history;
    }

    @Override
    protected void initAfter() {
        LinearLayoutManager layoutManager = new LinearLayoutManager(this);
        mRecyclerView.setLayoutManager(layoutManager);
        mHistoryAdapter = new HistoryAdapter(mApplication);
        mRecyclerView.setAdapter(mHistoryAdapter);
    }
}
